﻿using System;

// Token: 0x020001D7 RID: 471
public class GrabAction : AgentAction
{
	// Token: 0x06000A18 RID: 2584 RVA: 0x00059BFA File Offset: 0x00057DFA
	public GrabAction(EntityBase targetToGrab)
	{
		this.name = "Grab " + targetToGrab.name;
		this.target = targetToGrab;
	}

	// Token: 0x06000A19 RID: 2585 RVA: 0x00059C1F File Offset: 0x00057E1F
	public override void StartAction()
	{
		this.agent.ik.hand.GrabTarget(this.target);
	}

	// Token: 0x06000A1A RID: 2586 RVA: 0x00059C3C File Offset: 0x00057E3C
	public override bool IsCompleted()
	{
		return this.hasStarted && this.agent.ik.hand.GrabCompleted();
	}

	// Token: 0x06000A1B RID: 2587 RVA: 0x00059C61 File Offset: 0x00057E61
	public override void Interrupt()
	{
		this.agent.ik.hand.CancelGrab();
	}

	// Token: 0x04000F84 RID: 3972
	private EntityBase target;
}
